package net.huashitong.taskGroup.databean;

public enum  ProjectHeaders {

    projectName("projectName","项目名称"),
    describes("describes","基本情况"),
    natureType("natureType","行业类别"),
    openState("openState","开工状态"),
    startTime("startTime","计划开工时间"),
    resDept("resDept","责任单位"),
    ownerUnitPerson("ownerUnitPerson","负责人"),
    ownerUnitPersonPhone("ownerUnitPersonPhone","负责人电话"),
    contactName("contactName","经办人"),
    contactPhone("contactPhone","经办人电话"),
    resUser("resUser","分管县领导"),
    resPhone("resPhone","分管县领导电话"),
    address("address","项目地址"),
    status("status","进展情况"),
    overdueNode("overdueNode","逾期节点"),
    overSeeDeatil("overSeeDeatil","督查情况"),
    ;


    private String code;
    private String value;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    ProjectHeaders(String code, String value) {
        this.code = code;
        this.value = value;
    }


    public static ProjectHeaders getValues(String code)
    {
        for (ProjectHeaders item:values())
        {
            if(item.getCode().equals(code))
            {
                return  item;
            }
        }
        return  null;
    }
}
